<template>
	<view>
		<view>
			<!-- url为要跳转外链的地址-->
		    <web-view :src="url">
		    </web-view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url:"",
			}
		},
		onShow() {
      
			this.url = this.$yroute.query.url;
			
			 console.log(this.url);
			this.url = decodeURIComponent(this.url);
			 console.log(11111,this.url);
			// 设置当前的title 如果外链中有的话将被覆盖
			uni.setNavigationBarTitle({
				title: "客服"
			})
		
		},
		methods: {
			isNotEmpty(obj) {
				if (typeof obj == undefined || obj == null || obj == "" || obj == "undefined" || obj.length == 0) {
					return false;
				} else {
					return true;
				}
			},
			// 设置title
			// setTitle(title) {
			// 	uni.setNavigationBarTitle({
			// 		title: title
			// 	})
			// },
		}
	}
</script>
